Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test and anchor properties fix #875

Merged
merged 1 commit into from
Nov 24, 2019
Merged

Added test and anchor properties fix #875

merged 1 commit into from
Nov 24, 2019

Conversation

Jugen
Copy link
Collaborator

@Jugen Jugen commented Nov 24, 2019

Fixes #874 anchor properties not updating correctly if they have listeners attached.

The problem seems to come down to the internalStartedByAnchor Boolean property not firing on each invocation of setValue, but only when the actual value held changes.

The most non intrusive and safest fix, I feel, is to just toggle the Boolean property when needed in order to fire any relevant change listeners.

@Jugen Jugen merged commit d0efe97 into FXMisc:master Nov 24, 2019
@Jugen Jugen deleted the anchor_properties_fix branch November 24, 2019 16:00
@Jugen Jugen restored the anchor_properties_fix branch November 26, 2019 07:20
Jugen added a commit that referenced this pull request Nov 26, 2019
Jugen added a commit that referenced this pull request Nov 26, 2019
@Jugen
Copy link
Collaborator Author

Jugen commented Nov 26, 2019

This PR was reverted in favor of a better solution in PR #877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

caret and anchor stale after selectRange with listeners
1 participant